﻿using System;
using System.Collections.Generic;
using System.Data.Services.Client;
using System.Net;
using System.Threading;

namespace WpfClient.TransitODataServiceReference
{

	/// <summary>
	/// There are no comments for TransitData in the schema.
	/// </summary>
	public partial class TransitData
	{
		partial void OnContextCreated()
		{
			SendingRequest += OnSendingRequest;
		}
		void OnSendingRequest(object sender, SendingRequestEventArgs e)
		{
			var request = (HttpWebRequest) e.Request;
			request.Headers.Add("api_key", "M8xudPElsU2Gwe87MzYKVg");
		}
	}
}
